package cn.wolfcode.luowowo.QueryObject;

import cn.wolfcode.luowowo.util.TravelConditon;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class TravelQuery extends QueryObject {

    private String destId;

    private int orderType;  //排序规则

    private int perExpendType;  //人均消费

    private int dayType;    //出行天数

    private int isPublic;    //是否公开

    private int state=-1;    //是否已发布

    public TravelConditon getDay() {
        return TravelConditon.MAP_DAY.get(dayType);
    }

    public TravelConditon getPerExpend() {
        return TravelConditon.MAP_PERWXTEND.get(perExpendType);
    }



}
